/*******************************************************************************
*	                           bsp cpu.c
*******************************************************************************/
#include "bsp.h"
#include "mytype.h"
#include "str_ext.h"

/*******************************************************************************
* @brief  配置值
*******************************************************************************/
static const uint32_t cfg_req[4] = 
{
	0
};

/*******************************************************************************
* @brief  检测并配置.
*******************************************************************************/
void bsp_cpu_option_check(void)
{
	uint32_t lrc;
	
	outpw(0x20000000, 0x19880807);
	outpw(0x20000004, 0x10101010);
	lrc = 0;
	lrc += 0x19880807;
	lrc += 0x10101010;
	outpw(0x20000008, lrc);
	outpw(0x2000000C, ~lrc);
	
	outpw(0x20000010UL, 0xFF00F533UL);
	outpw(0x20000014UL, 0x19880807UL);
	outpw(0x20000018UL, 0);
	outpw(0x2000001CUL, 0);
}

